package com.xq.shop.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.xq.shop.dao.ICategoryDAO;
import com.xq.shop.po.Category;
import com.xq.shop.util.HibernateUtil;

@Repository
@SuppressWarnings("unchecked")
public class CategoryDAO extends BaseDAO<Category> implements ICategoryDAO {

	@Override
	public List<Category> getByPID(Long pID) {
		return HibernateUtil.getTemplate().find(" from Category where parent_id=? order by seq", pID);
	}
}
